package dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import pojo.Ebook_entry;

public interface Ebook_entryMapper {
	
	//限制查找，根据用户需求查找
	public List<Ebook_entry> getListBooks(@Param("categoryId") int categoryId,@Param("currentPageNo")int currentPageNo,@Param("pageSize") int pageSize);
	
	//根据用户查询的分类编号来查询总条数，用于分页
	public int getConut(@Param("categoryId") int categoryId);
	
	// 删除书本
	public int delBook(@Param("categoryId") int categoryId);
	
	//增加书本
	public int addBook(Ebook_entry ebook);
	
	//根据id查找书本 
	public Ebook_entry searchBook(@Param("id") String id);
	
	//修改书本信息
	public int modify(Ebook_entry ebook_entry);
	
}
